import { setting } from "./../../setting";

interface Settings {
  crumbs: boolean;
  menu: boolean;
  navMenu: boolean;
  background: string;
  fontColor: string;
}

import { defineStore } from "pinia";
export const useMenuStore = defineStore({
  id: "isMenu",
  state: () => {
    return {
      setting: setting,
    };
  },
  actions: {
    // 控制菜单显示对象
    updateMenu(data: Settings) {
      this.setting = { ...this.setting, ...data };
    },
  },
});
